/*
 * GuudLog.h
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#ifndef GUUDLOG_H_
#define GUUDLOG_H_

#include <string>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <sys/file.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
namespace guud {

class GuudLog {
public:
	GuudLog();
	void setLogName(const char * filename);
	void log(const char * csformat, ...);

private:
	void log(const char * csformat, va_list &ap);
	std::string m_filename;
};

}

#endif /* GUUDLOG_H_ */
